package com.zzc.mapper;
import com.select.pojo.Student;
import com.select.pojo.Teacher;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

@Mapper
public interface LoginMapper {
@Select("select * from teacher where tea_account = #{teaAccount} and tea_password = #{teaPassword}")
    public Teacher find(Teacher teacher);
@Select("select * from teacher where tea_account=#{teaAccount}")
    public Teacher findOneTea(@Param("teaAccount") String teaAccount);
@Update("update teacher set tea_lev=#{teaLev} where tea_account=#{teaAccount}")
    public Integer up(@Param("teaLev") String teaLev,@Param("teaAccount") String teaAccount);
}
